﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraReports.UI;

namespace ERP_RORZE_PRODUCT.Product.Incauhinh
{
    public partial class ucInLenhView : DevExpress.XtraEditors.XtraUserControl
    {
       
        //public ucInLenhView(ObjectInLenh obLenh)
        //{
        //    InitializeComponent();

        //    Rp_InLenh inlenh = new Rp_InLenh(obLenh);
        //    documentViewer1.DocumentSource = inlenh;
        //}

        public ucInLenhView(DataSet ds)
        {
            InitializeComponent();

            Rp_InLenh100 inlenh = new Rp_InLenh100(ds);
            inlenh.CreateDocument();
            inlenh.ShowPreview();
            documentViewer1.DocumentSource = inlenh;
        }
    }
}
